package com.example.ui.service.feign;

import com.example.ui.pojo.Person;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 86188
 */
@Component
public class ProducerServiceFallBack implements ProducerService {
    @Override
    public List<Person> save(String name) {
        List<Person> people = new ArrayList<>();
        Person p = new Person();
        p.setName("故障");
        people.add(p);
        return people;
    }

    @Override
    public List<Person> list() {
        return this.save("");
    }

    @Override
    public String hello(String name) {
        return "producer 故障";
    }
}
